using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using NhaThuocOnline.Entities.Mapping;

namespace NhaThuocOnline.Entities
{
    public partial class QLNhathuocContext : DbContext
    {
        static QLNhathuocContext()
        {
            Database.SetInitializer<QLNhathuocContext>(null);
        }

        public QLNhathuocContext()
            : base("Name=QLNhathuocContext")
        {
        }

        public DbSet<BacSi> BacSis { get; set; }
        public DbSet<BenhNhan> BenhNhans { get; set; }
        public DbSet<BietDuoc> BietDuocs { get; set; }
        public DbSet<DieuKienBaoQuan> DieuKienBaoQuans { get; set; }
        public DbSet<DonViTinh> DonViTinhs { get; set; }
        public DbSet<HoaDonBanHang> HoaDonBanHangs { get; set; }
        public DbSet<HoaDonBanHangChiTiet> HoaDonBanHangChiTiets { get; set; }
        public DbSet<HoaDonNhapHang> HoaDonNhapHangs { get; set; }
        public DbSet<HoaDonNhapHangChiTiet> HoaDonNhapHangChiTiets { get; set; }
        public DbSet<HoatChat> HoatChats { get; set; }
        public DbSet<ICD> ICDs { get; set; }
        public DbSet<ICDVaHoaDonBanHang> ICDVaHoaDonBanHangs { get; set; }
        public DbSet<LoaiSanPham> LoaiSanPhams { get; set; }
        public DbSet<NhaSanXuat> NhaSanXuats { get; set; }
        public DbSet<NhaThuoc> NhaThuocs { get; set; }
        public DbSet<NhomDieuTri> NhomDieuTris { get; set; }
        public DbSet<NuocSanXuat> NuocSanXuats { get; set; }
        public DbSet<PhanLoaiThuoc> PhanLoaiThuocs { get; set; }
        public DbSet<QuyCachDongGoi> QuyCachDongGois { get; set; }
        public DbSet<sysdiagram> sysdiagrams { get; set; }
        public DbSet<UserInfo> UserInfoes { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Configurations.Add(new BacSiMap());
            modelBuilder.Configurations.Add(new BenhNhanMap());
            modelBuilder.Configurations.Add(new BietDuocMap());
            modelBuilder.Configurations.Add(new DieuKienBaoQuanMap());
            modelBuilder.Configurations.Add(new DonViTinhMap());
            modelBuilder.Configurations.Add(new HoaDonBanHangMap());
            modelBuilder.Configurations.Add(new HoaDonBanHangChiTietMap());
            modelBuilder.Configurations.Add(new HoaDonNhapHangMap());
            modelBuilder.Configurations.Add(new HoaDonNhapHangChiTietMap());
            modelBuilder.Configurations.Add(new HoatChatMap());
            modelBuilder.Configurations.Add(new ICDMap());
            modelBuilder.Configurations.Add(new ICDVaHoaDonBanHangMap());
            modelBuilder.Configurations.Add(new LoaiSanPhamMap());
            modelBuilder.Configurations.Add(new NhaSanXuatMap());
            modelBuilder.Configurations.Add(new NhaThuocMap());
            modelBuilder.Configurations.Add(new NhomDieuTriMap());
            modelBuilder.Configurations.Add(new NuocSanXuatMap());
            modelBuilder.Configurations.Add(new PhanLoaiThuocMap());
            modelBuilder.Configurations.Add(new QuyCachDongGoiMap());
            modelBuilder.Configurations.Add(new sysdiagramMap());
            modelBuilder.Configurations.Add(new UserInfoMap());
        }
    }
}
